package lambda

/**
 * kotlin语法糖
 */
fun main() {
    listOf(1, 2, 3).forEach {
        print1(it)
    }
}

fun print(num: Int) {
    println(num)
}

fun print1(num: Int) = println(num)